/*
 * @Description: 
 * @Author: changqing
 * @Date: 2021-08-27 12:05:14
 * @LastEditTime: 2021-08-27 12:07:07
 * @LastEditors: changqing
 * @Usage: 
 */
var { of } = require('rxjs');
var { map } = require('rxjs/operators');

of(1, 2, 3)
  .pipe(map((x) => x * x))
  .subscribe((v) => console.log(`value: ${v}`));

// Logs:
// value: 1
// value: 4
// value: 9